@import "../../color.less";
.transition{
	transition: transform .735s cubic-bezier(.4,1,.2,1), opacity .735s cubic-bezier(.4,1,.2,1);	
}
.hide{
    // display: none;
	opacity: 0;
	transform: translate3d(100%,0,0);
}
.show{
    // display: block;
	opacity: 1;
	transform: translate3d(0,0,0);
}
.chatrecord {
    width: 100vw;
    height: 100vh;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    .dragbar {
        color: #000;
        padding-top: 12px;
        padding-bottom: 38px;
        text-align: center;
        -webkit-app-region: drag;
    }
    .header {
        padding: 0 15% 38px;
        :global(.ant-input-affix-wrapper) {
            height: 38px;
            input {
                border: 0;
                background-color: #f2f2f2;
            }
        }
    }
    .content {
        flex: 1;
        display: flex;
        flex-direction: row;
        border-top: 1px solid @borderColor;
        overflow: hidden;
        .left {
            width: 260px;
            border-right: 1px solid @borderColor;
            padding-left: 14px;
            overflow-y: auto;
        }
        .rightWrap {
            flex: 1;
            height: 100%;
            position: relative;
            overflow: hidden;
        }
        .rightWrap.active{
            .right{
                .hide();
                transform: translate3d(-100%,0,0);
            }
            .rightright{
                .show();
            }
        }
        .right {
            .transition();
            height: 100%;
            display: flex;
            flex-direction: column;
            padding: 24px 40px;
            padding-right: 0;
            padding-bottom: 0;
            .rightHeader {
                position: relative;
                padding-bottom: 12px;
                padding-right: 40px;
                div {
                    float: right;
                    color: #000;
                    font-size: 16px;
                    cursor: pointer;
                    span {
                        font-size: 18px;
                        line-height: 18px;
                        vertical-align: middle;
                        margin-right: 4px;
                    }
                }
            }
        }
        .rightright {
            position: absolute;
            left: 0;
            top: 0;
            right: 0;
            bottom: 0;
            overflow: hidden;
            .transition();
            .hide();
            display: flex;
            flex-direction: column;
            padding: 16px 40px;
            padding-right: 0;
            padding-bottom: 0;
            .righttop {
                button {
                    padding: 0;
                    font-size: 16px;
                }
            }
        }
        .rightContent {
            flex: 1;
            overflow-y: auto;
            padding-right: 40px;
            .item {
                display: flex;
                align-items: center;
                padding-top: 18px;
                position: relative;
                .itemRight {
                    flex: 1;
                    margin-left: 12px;
                    border-bottom: 1px solid @borderColor;
                    padding-bottom: 10px;
                    line-height: 1.4;
                    .name {
                        position: relative;
                        div {
                            float: right;
                        }
                        button {
                            position: absolute;
                            right: 0;
                            bottom: -160%;
                            padding: 0;
                            color: #fff
                        }
                    }
                    .text {
                        margin-top: 8px;
                        color: #000;
                        max-width: 83%;
                        font-size: 16px;
                        white-space: pre-wrap;
                        &.under {
                            // text-decoration: underline;
                            // text-decoration-color: @mainColor;
                            // text-underline-position: under;
                            cursor: pointer;
                        }
                        &.under:hover {
                            color: @mainColor;
                        }
                    }
                    &:hover {
                        .name button {
                            color: @mainColor;
                        }
                    }
                }
            }
        }
    }
}